const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  runtimeCompiler: true,
  devServer: {
    port: 7070,
    proxy: {
        '/api': {
        target: 'http://127.0.0.1:3000',
        changeOrigin: true,
        ws: true,  // 这一行很关键  表示是否开启  websocket
        secure: true,
        pathRewrite: {
            '^/api': '/',
        },
      },
  },
},
})
